package com.spatio.serving.basic.service.template.core.component.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import javax.annotation.Resource;

@Configuration
public class ApplicationConfig {
    @Resource
    private Environment environment;

    public String getApplicationValue(String applicationName){
        return environment.getProperty(applicationName);
    }

    public String getEnv(){
        return environment.getProperty("spring.profiles.active");
    }
}
